/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package card.entries;

import frmwrk.core.Entry;
import frmwrk.interfaces.IAccount;
import java.util.GregorianCalendar;

/**
 *
 * @author kgergis
 */
public class Deposit extends Entry {

    public Deposit(Double amount, GregorianCalendar date,IAccount account){
        super(amount,date,account);
    }
    @Override
    public boolean execute() {
        account.setBalance(account.getBalance() + amount);
        return true;
    }
}
